Skip to content

gmaps,postgres: fix typo in field name and use idiomatic time.Since#271

Open
Abzaek wants to merge 1 commit into
gosom:mainfrom
Abzaek:fix/typo-and-idiomatic-go
Open

gmaps,postgres: fix typo in field name and use idiomatic time.Since#271
Abzaek wants to merge 1 commit into
gosom:mainfrom
Abzaek:fix/typo-and-idiomatic-go

Conversation

@Abzaek
Copy link
Copy Markdown

@Abzaek Abzaek commented May 11, 2026

Changes

Fix typo in PlaceJob field name

UsageInResultststsUsageInResults — the extra "tsts" is an obvious keyboard fumble. The public method was already correctly named UseInResults(); this fixes the backing field to match.

Use idiomatic time.Since in resultWriter

Replace time.Now().UTC().Sub(lastSave) with time.Since(lastSave) — the standard library helper that does the same thing more concisely.

Verification

  • gofmt clean
  • go test ./gmaps/... passes

- Rename UsageInResultststs -> UsageInResults in PlaceJob struct
  (obvious keyboard fumble with extra 'tsts'; the method was already
  correctly named UseInResults)
- Replace time.Now().UTC().Sub(lastSave) with time.Since(lastSave)
  in resultWriter.Run for consistency with Go idioms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant